package polymorphism;

public class Demo {
    public static void main(String[] args) {
        //双精度浮点型
        double d=3.14;
        System.out.println(d);

        int a=1;
        int b=2;
        System.out.println(a/b);

        double num=1.1;
        System.out.println(num*num);
        
        /*
        //字节型变量
        byte b=10;
        System.out.println(b);
        System.out.println(Byte.MAX_VALUE);
        System.out.println(Byte.MIN_VALUE);
        /*
        //短整型
        short a=10;
        System.out.println(a);
        System.out.println(Short.MAX_VALUE);
        System.out.println(Short.MIN_VALUE);
        /*
    //长整型
    int a=10;
    long b=10;
    long c=10L;
    long d=10l;
        System.out.println(Long.MAX_VALUE);
        System.out.println(Long.MIN_VALUE);
    /*
        int a=10;
        System.out.println(a);
        int b;
        b=10;
        System.out.println(b);

//        int c;
//        System.out.println(c);
//        c=100;
        //整形int变量所能表示的范围
        System.out.println(Integer.MIN_VALUE);
        System.out.println(Integer.MAX_VALUE);
        /*
        int a=10;
        double d=3.14;
        char c='A';
        boolean b=true;
        System.out.println(a);
        System.out.println(d);
        System.out.println(c);
        System.out.println(b);
        a=100;
        System.out.println(a);
        int a1=10,a2=-20,a3=30;
        System.out.println(a1);
        System.out.println(a2);;
        System.out.println(a3);
        /*
        System.out.println("hello world");
        System.out.println(100);
        System.out.println(3.14);
        System.out.println("A");
        System.out.println(true);
        System.out.println(false);
         */
    }
}
